#include "QmlType.h"

QmlType::QmlType(QObject *parent) : QObject(parent)
{
    setValue(0);
    setName("HUAPI_QtQuick");
}

QmlType::~QmlType()
{
}

int QmlType::getValue() const
{
    return m_value;
}

void QmlType::setValue(int value)
{
    if (m_value!= value) {
        m_value = value;
        emit valueChanged();
    }
}

QString QmlType::getName() const
{
    return m_name;
}

void QmlType::setName(const QString &name)
{
    if (m_name!= name) {
        m_name = name;
        emit nameChanged();
    }
}
